Quiz: Object-oriented Design

Test your understanding of object-oriented design concepts and diagrams.

We'll cover the following

Arrange sequence diagram messages#

Scenario: You are a student and you wish to create an account on your university's web portal using some credentials. After signing up, you also want to make sure that your account is verified.

For the given scenario, arrange the following messages in the order they would appear in a sequence diagram. The messages are given in the following format:

<<ObjectName>> : <<message>><<ObjectName>>\space:\space <<message>>

Note: The object name here refers to the object that sends the message. Here, we assume that the student enters the correct credentials.

Arrange the cards according to the order they would appear in the sequence diagram below.

Student : signUpInformation(credentials)

SignUpForm : verifyInformationFormat()

SignUpForm : signUp(credentials, profile)

AuthenticationServer : createAccount(profile)

AuthenticationServer : sendVerificationEmail()

Student : click verification link

AuthenticationServer : emailVerified = True

AuthenticationServer : accountVerified = True


MCQs#

Challenge yourself by solving the following quiz questions.

1

Which statement about the given class diagram is true?

A)

An instance of class A can be associated with multiple instances of class D, and each instance of class D can be associated with exactly two instances of class A.

B)

An instance of class A can be associated with multiple instances of class D, and each instance of class D can be associated with any number of instances of class A.

C)

An instance of class A can be associated with exactly two instances of class D, and each instance of class D can be associated with any number of instances of class A.

D)

An instance of class A can be associated with exactly two instances of class D, and each instance of class D can be associated with exactly one instance of class A.

Question 1 of 60 attempted

Activity Diagram

Introduction to SOLID Design Principles